package com.example.sls.service.impl.user;

import com.example.sls.pojo.user.SupportTickets;
import com.example.sls.dao.user.SupportTicketsDao;
import com.example.sls.service.intserfaces.user.SupportTicketsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 客服记录表(SupportTickets)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:11
 */
@Service
public class SupportTicketsServiceImpl implements SupportTicketsService {
  @Autowired
  SupportTicketsDao supportTicketsDao;

  @Override
  public SupportTickets queryById(Integer id) {
    return supportTicketsDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return supportTicketsDao.deleteById(id);
  }

  @Override
  public int update(SupportTickets supportTickets) {
    return supportTicketsDao.update(supportTickets);
  }

  @Override
  public int insert(SupportTickets supportTickets) {
    return supportTicketsDao.insert(supportTickets);
  }

  @Override
  public long count() {
    return supportTicketsDao.count();
  }

  @Override
  public List<SupportTickets> queryAllByLimit(SupportTickets supportTickets, Integer pageSize, Integer offset) {
    return supportTicketsDao.queryAllByLimit(supportTickets, pageSize, offset);
  }
}
